<?php
namespace Common\Model;
use Common\Model\AiModel;
class CommConfModel extends AiModel {
	
	#根据Conf的名称获得数据值
	function getByN($n, $ex = false) {
		$item =  $this->where("n='{$n}'")->getField('v');
		if ($ex) $item = explode("\r\n", trim($item));
		return $item;
	}
	
	function loadConf() {
		$items = $this->select();
		return $items;
	}
}